<%--
  Created by IntelliJ IDEA.
  User: 24090
  Date: 2023/5/9
  Time: 8:42
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=utf-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

    <form action="${PageContext.request.contextPath}/databind/testUser" method="post">
        <table>
            <tr>
                <td>用户名</td>
                <td>密码</td>
            </tr>
            <tr>
                <td><input type="text" name="userName"/></td>//name的属性名要与entity的User类一致
                <td><input type="password" name="password"></td>
            </tr>
            <tr>
                <td colspan="2">
                    <input type="submit" value="提交"/>
                </td>
                <td></td>
            </tr>
        </table>
    </form>
</body>
</html>
